From 2dc1ca4ace4f8d5f7f0b00ac06e0ead6ff826a38 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 27 Jan 2015 05:31:43 +0000 Subject: [PATCH] Remove unused $fname temporary variables Change-Id: Ia7a32ecdfc293e870e42cd7398fc017de0d59f11 --- includes/search/SearchHighlighter.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/search/SearchHighlighter.php b/includes/search/SearchHighlighter.php index 255d005cc4..ec7b710c02 100644 --- a/includes/search/SearchHighlighter.php +++ b/includes/search/SearchHighlighter.php @@ -45,8 +45,6 @@ class SearchHighlighter { public function highlightText( $text, $terms, $contextlines, $contextchars ) { global $wgContLang, $wgSearchHighlightBoundaries; - $fname = __METHOD__; - if ( $text == '' ) { return ''; } @@ -444,8 +442,6 @@ class SearchHighlighter { * @return mixed */ function removeWiki( $text ) { - $fname = __METHOD__; - // $text = preg_replace( "/'{2,5}/", "", $text ); // $text = preg_replace( "/\[[a-z]+:\/\/[^ ]+ ([^]]+)\]/", "\\2", $text ); // $text = preg_replace( "/\[\[([^]|]+)\]\]/", "\\1", $text ); @@ -503,7 +499,6 @@ class SearchHighlighter { */ public function highlightSimple( $text, $terms, $contextlines, $contextchars ) { global $wgContLang; - $fname = __METHOD__; $lines = explode( "\n", $text ); -- 2.20.1